package com.fz.mapper;

import com.fz.controller.request.BaseRequest;
import com.fz.controller.request.PasswordRequest;
import com.fz.pojo.Category;
import com.fz.pojo.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CategoryMapper {
    List<Category> list();

    //查询种类，返回
    List<Category> listByCondition(BaseRequest baseRequest);

    //添加种类
    void addCategory(Category admin);

    //通过id查询
    Category getById(Integer id);

    void updateById(Category admin);

    void deleteById(Integer id);

}
